TechNote - COM Registration

Sunday, February 19, 2023

10:07 AM

The installer will register OneMore as a OneNote add-in by writing to the Windows System Registry in the following keys

 

HKEY_CLASSES_ROOT\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}
HKEY_CLASSES_ROOT\onemore\shell\open\command
HKEY_CLASSES_ROOT\River.OneMoreAddIn
HKEY_CLASSES_ROOT\River.OneMoreAddIn.1
HKEY_CURRENT_USER\SOFTWARE\Classes\AppID{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\OneNote\AddIns\River.OneMoreAddIn
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\River.OneMoreAddIn.dll

 

A full example .reg file is included in the source repo in the file register-onemore.reg

 

Development Environment

While developing OneMore, it is easier to run the add-in out of the Visual Studio build paths rather than continually copying bits into the registered deployment folders.

 

To redirect the registry entries to your VS build paths, run the script setregistry.ps1, for example:

 

C:\GitHub\OneMore> .\setregistry.ps1

 

Other Interesting Registry Locations

 

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\OneNote (Load Times)
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\OneNote (LoadBehavior)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\OneNote (LoadBehavior)

 

#omwiki #omdeveloper #omtechnote

 

© 2020 Steven M Cohn. All rights reserved.

Please consider a sponsorship or one-time donation to support ongoing development

 

Created with OneNote.